package com.example.server.common.constant;

/**
 * @author china.fuyao@outlook.com
 * @date 2020-04-08 10:19
 */
public class SMSConstants {
    /**
     * 不存在
     */
    public static final int CODE_CHECK_NOT_EXIST = 0;
    /**
     * 校验成功
     */
    public static final int CODE_CHECK_SUCCESS = 1;
    /**
     * 校验失败
     */
    public static final int CODE_CHECK_FAILED = 2;

    /**
     * 验证码类型
     */
    public enum CodeType {
        OTHER(0, "其他"),
        REGISTER_CUSTOMER(1, "注册"),
        RESET_PASSWORD(2, "重置密码"),
        UPDATE_PHONE(3, "修改手机号");
        private int type;
        private String desc;

        CodeType(int type, String desc) {
            this.type = type;
            this.desc = desc;
        }

        public int getType() {
            return type;
        }

        public String getDesc() {
            return desc;
        }
    }
}
